<template>
  <div class="pagetools">
    <el-card>
      <div class="box">
        <div class="left">
          <div class="leftcontent" v-if="showLeft">
            <i class="el-icon-info"></i>
            <slot name="left">
              <span>本月：社保在缴 公积金在缴 增员 减员 入职 离职</span>
            </slot>
          </div>
        </div>
        <div class="right">
          <slot name="right">
            <el-button size="mini" type="primary">历史归档</el-button>
            <el-button size="mini" type="primary">导出</el-button>
          </slot>
        </div>
      </div>
    </el-card>
  </div>
</template>

<script>
export default {
  name: 'pagetools',
  // 控制左侧结构的显示与隐藏
  props: ['showLeft']
}
</script>

<style lang="scss">
.pagetools {
  .box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    .left {
      .leftcontent {
        border: 1px solid #c8ebff;
        font-size: 14px;
        background-color: #e6f7ff;
        padding: 6px;
      }
      i {
        margin-right: 10px;
        color: #499eff;
      }
    }
  }
}
</style>
